Optimal. Leaf size=354 \[ \frac {2 a f x \sqrt {a+b x^4}}{21 b}+\frac {1}{4} c x^2 \sqrt {a+b x^4}+\frac {2 a d x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{35} x^3 \left (7 d+5 f x^2\right ) \sqrt {a+b x^4}+\frac {e \left (a+b x^4\right )^{3/2}}{6 b}+\frac {a c \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}-\frac {2 a^{5/4} d \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{5/4} \left (21 \sqrt {b} d-5 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{105 b^{5/4} \sqrt {a+b x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 354, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 11, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.393, Rules used = {1847, 1262,
655, 201, 223, 212, 1288, 1294, 1212, 226, 1210} \begin {gather*} \frac {a^{5/4} \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} \left (21 \sqrt {b} d-5 \sqrt {a} f\right ) F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{105 b^{5/4} \sqrt {a+b x^4}}-\frac {2 a^{5/4} d \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {1}{4} c x^2 \sqrt {a+b x^4}+\frac {a c \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}+\frac {1}{35} x^3 \sqrt {a+b x^4} \left (7 d+5 f x^2\right )+\frac {2 a d x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {e \left (a+b x^4\right )^{3/2}}{6 b}+\frac {2 a f x \sqrt {a+b x^4}}{21 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 212
Rule 223
Rule 226
Rule 655
Rule 1210
Rule 1212
Rule 1262
Rule 1288
Rule 1294
Rule 1847
Rubi steps
\begin {align*} \int x \left (c+d x+e x^2+f x^3\right ) \sqrt {a+b x^4} \, dx &=\int \left (x \left (c+e x^2\right ) \sqrt {a+b x^4}+x^2 \left (d+f x^2\right ) \sqrt {a+b x^4}\right ) \, dx\\ &=\int x \left (c+e x^2\right ) \sqrt {a+b x^4} \, dx+\int x^2 \left (d+f x^2\right ) \sqrt {a+b x^4} \, dx\\ &=\frac {1}{35} x^3 \left (7 d+5 f x^2\right ) \sqrt {a+b x^4}+\frac {1}{2} \text {Subst}\left (\int (c+e x) \sqrt {a+b x^2} \, dx,x,x^2\right )+\frac {1}{35} (2 a) \int \frac {x^2 \left (7 d+5 f x^2\right )}{\sqrt {a+b x^4}} \, dx\\ &=\frac {2 a f x \sqrt {a+b x^4}}{21 b}+\frac {1}{35} x^3 \left (7 d+5 f x^2\right ) \sqrt {a+b x^4}+\frac {e \left (a+b x^4\right )^{3/2}}{6 b}-\frac {(2 a) \int \frac {5 a f-21 b d x^2}{\sqrt {a+b x^4}} \, dx}{105 b}+\frac {1}{2} c \text {Subst}\left (\int \sqrt {a+b x^2} \, dx,x,x^2\right )\\ &=\frac {2 a f x \sqrt {a+b x^4}}{21 b}+\frac {1}{4} c x^2 \sqrt {a+b x^4}+\frac {1}{35} x^3 \left (7 d+5 f x^2\right ) \sqrt {a+b x^4}+\frac {e \left (a+b x^4\right )^{3/2}}{6 b}+\frac {1}{4} (a c) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,x^2\right )-\frac {\left (2 a^{3/2} d\right ) \int \frac {1-\frac {\sqrt {b} x^2}{\sqrt {a}}}{\sqrt {a+b x^4}} \, dx}{5 \sqrt {b}}+\frac {\left (2 a^{3/2} \left (21 \sqrt {b} d-5 \sqrt {a} f\right )\right ) \int \frac {1}{\sqrt {a+b x^4}} \, dx}{105 b}\\ &=\frac {2 a f x \sqrt {a+b x^4}}{21 b}+\frac {1}{4} c x^2 \sqrt {a+b x^4}+\frac {2 a d x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{35} x^3 \left (7 d+5 f x^2\right ) \sqrt {a+b x^4}+\frac {e \left (a+b x^4\right )^{3/2}}{6 b}-\frac {2 a^{5/4} d \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{5/4} \left (21 \sqrt {b} d-5 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{105 b^{5/4} \sqrt {a+b x^4}}+\frac {1}{4} (a c) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x^2}{\sqrt {a+b x^4}}\right )\\ &=\frac {2 a f x \sqrt {a+b x^4}}{21 b}+\frac {1}{4} c x^2 \sqrt {a+b x^4}+\frac {2 a d x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{35} x^3 \left (7 d+5 f x^2\right ) \sqrt {a+b x^4}+\frac {e \left (a+b x^4\right )^{3/2}}{6 b}+\frac {a c \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}-\frac {2 a^{5/4} d \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{5/4} \left (21 \sqrt {b} d-5 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{105 b^{5/4} \sqrt {a+b x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 10.13, size = 211, normalized size = 0.60 \begin {gather*} \frac {\sqrt {a+b x^4} \left (14 a e \sqrt {1+\frac {b x^4}{a}}+12 a f x \sqrt {1+\frac {b x^4}{a}}+21 b c x^2 \sqrt {1+\frac {b x^4}{a}}+14 b e x^4 \sqrt {1+\frac {b x^4}{a}}+12 b f x^5 \sqrt {1+\frac {b x^4}{a}}+21 \sqrt {a} \sqrt {b} c \sinh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a}}\right )-12 a f x \, _2F_1\left (-\frac {1}{2},\frac {1}{4};\frac {5}{4};-\frac {b x^4}{a}\right )+28 b d x^3 \, _2F_1\left (-\frac {1}{2},\frac {3}{4};\frac {7}{4};-\frac {b x^4}{a}\right )\right )}{84 b \sqrt {1+\frac {b x^4}{a}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.44, size = 280, normalized size = 0.79
method | result | size |
default | \(f \left (\frac {x^{5} \sqrt {b \,x^{4}+a}}{7}+\frac {2 a x \sqrt {b \,x^{4}+a}}{21 b}-\frac {2 a^{2} \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{21 b \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}\right )+\frac {e \left (b \,x^{4}+a \right )^{\frac {3}{2}}}{6 b}+d \left (\frac {x^{3} \sqrt {b \,x^{4}+a}}{5}+\frac {2 i a^{\frac {3}{2}} \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )\right )}{5 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}\, \sqrt {b}}\right )+c \left (\frac {x^{2} \sqrt {b \,x^{4}+a}}{4}+\frac {a \ln \left (x^{2} \sqrt {b}+\sqrt {b \,x^{4}+a}\right )}{4 \sqrt {b}}\right )\) | \(280\) |
elliptic | \(\frac {f \,x^{5} \sqrt {b \,x^{4}+a}}{7}+\frac {e \,x^{4} \sqrt {b \,x^{4}+a}}{6}+\frac {d \,x^{3} \sqrt {b \,x^{4}+a}}{5}+\frac {c \,x^{2} \sqrt {b \,x^{4}+a}}{4}+\frac {2 a f x \sqrt {b \,x^{4}+a}}{21 b}+\frac {a e \sqrt {b \,x^{4}+a}}{6 b}-\frac {2 a^{2} f \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{21 b \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}+\frac {a c \ln \left (2 x^{2} \sqrt {b}+2 \sqrt {b \,x^{4}+a}\right )}{4 \sqrt {b}}+\frac {2 i a^{\frac {3}{2}} d \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )\right )}{5 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}\, \sqrt {b}}\) | \(297\) |
risch | \(\frac {\left (60 b f \,x^{5}+70 b e \,x^{4}+84 b d \,x^{3}+105 c \,x^{2} b +40 a f x +70 a e \right ) \sqrt {b \,x^{4}+a}}{420 b}+\frac {2 i a^{\frac {3}{2}} d \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{5 \sqrt {b}\, \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}-\frac {2 i a^{\frac {3}{2}} d \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticE \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{5 \sqrt {b}\, \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}+\frac {a c \ln \left (x^{2} \sqrt {b}+\sqrt {b \,x^{4}+a}\right )}{4 \sqrt {b}}-\frac {2 a^{2} f \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{21 b \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}\) | \(312\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.13, size = 170, normalized size = 0.48 \begin {gather*} \frac {336 \, a \sqrt {b} d x \left (-\frac {a}{b}\right )^{\frac {3}{4}} E(\arcsin \left (\frac {\left (-\frac {a}{b}\right )^{\frac {1}{4}}}{x}\right )\,|\,-1) + 105 \, a \sqrt {b} c x \log \left (-2 \, b x^{4} - 2 \, \sqrt {b x^{4} + a} \sqrt {b} x^{2} - a\right ) - 16 \, {\left (21 \, a d + 5 \, a f\right )} \sqrt {b} x \left (-\frac {a}{b}\right )^{\frac {3}{4}} F(\arcsin \left (\frac {\left (-\frac {a}{b}\right )^{\frac {1}{4}}}{x}\right )\,|\,-1) + 2 \, {\left (60 \, b f x^{6} + 70 \, b e x^{5} + 84 \, b d x^{4} + 105 \, b c x^{3} + 40 \, a f x^{2} + 70 \, a e x + 168 \, a d\right )} \sqrt {b x^{4} + a}}{840 \, b x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.46, size = 158, normalized size = 0.45 \begin {gather*} \frac {\sqrt {a} c x^{2} \sqrt {1 + \frac {b x^{4}}{a}}}{4} + \frac {\sqrt {a} d x^{3} \Gamma \left (\frac {3}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {3}{4} \\ \frac {7}{4} \end {matrix}\middle | {\frac {b x^{4} e^{i \pi }}{a}} \right )}}{4 \Gamma \left (\frac {7}{4}\right )} + \frac {\sqrt {a} f x^{5} \Gamma \left (\frac {5}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {5}{4} \\ \frac {9}{4} \end {matrix}\middle | {\frac {b x^{4} e^{i \pi }}{a}} \right )}}{4 \Gamma \left (\frac {9}{4}\right )} + \frac {a c \operatorname {asinh}{\left (\frac {\sqrt {b} x^{2}}{\sqrt {a}} \right )}}{4 \sqrt {b}} + e \left (\begin {cases} \frac {\sqrt {a} x^{4}}{4} & \text {for}\: b = 0 \\\frac {\left (a + b x^{4}\right )^{\frac {3}{2}}}{6 b} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x\,\sqrt {b\,x^4+a}\,\left (f\,x^3+e\,x^2+d\,x+c\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________